package com.bw.common;

/**
 * 异常枚举类
 * @author 13096
 */
public enum ErrorEnums {
    // 系统繁忙
    SYSTEM_BUSY(-1,"系统繁忙,请稍后再试!"),
    NO_PERMISSIONS(401, "权限不足!"),
    AUTH_ERROR(403, "认证失败!"),
    USER_NOT_EXIST(-2,"账号不存在"),
    AVATAR_UPLOAD_ERROR(-5,"头像上传失败"),
    PASSWORD_ERROR(-3,"密码错误"),
    CODE_ERROR(-4,"验证码错误");
    private Integer code;
    private String message;
    ErrorEnums(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
